package ad.android.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 账户设置
 * @author lenovo
 *
 */
@Entity
@Table(name = "tbl_adhost_settings", catalog = "adproject")
public class AdHostSettings implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -817557241826287874L;
	
	/**
	 * 主键
	 */
	private Long id;
	/**
	 * 用户id
	 */
	private Long userId;
	/** 
	 * 账户余额
	 */
	private Double countOverage;
	/**
	 * 未到帐余额
	 */
	private Double toCount;
	/**
	 * 通知设置
	 */
	private Integer noticeValue;
	/**
	 * 邮件通知设置
	 */
	private Integer noticeMail;
	/**
	 * 创建日期
	 */
	private Date createTime;
	/**
	 * 修改日期
	 */
	private Date updateTime;
	

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name = "ID", unique = true, nullable = true) 
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	@Column(name = "USER_ID")
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	@Column(name = "COUNT_OVERAGE")
	public Double getCountOverage() {
		return countOverage;
	}
	public void setCountOverage(Double countOverage) {
		this.countOverage = countOverage;
	}
	@Column(name = "TO_COUNT")
	public Double getToCount() {
		return toCount;
	}
	public void setToCount(Double toCount) {
		this.toCount = toCount;
	}
	@Column(name = "CREATE_TIME")
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Column(name = "UPDATE_TIME")
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	@Column(name = "NOTICE_VALUE")
	public Integer getNoticeValue() {
		return noticeValue;
	}
	public void setNoticeValue(Integer noticeValue) {
		this.noticeValue = noticeValue;
	}
	@Column(name = "NOTICE_MAIL")
	public Integer getNoticeMail() {
		return noticeMail;
	}
	public void setNoticeMail(Integer noticeMail) {
		this.noticeMail = noticeMail;
	}
	
	
}
